package com.fs.system.controller;

import com.fs.common.core.vo.RegisterBody;
import com.fs.system.service.ISysRegisterService;
import com.fs.system.service.impl.SysUserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RegisterController {
    @Autowired
    ISysRegisterService registerService;

    @PostMapping("/register")
    public void register(@RequestBody RegisterBody registerBody){
        registerService.register(registerBody.getUsername(),registerBody.getPassword(),registerBody.getCode(),registerBody.getUuid());
    }
}
